3 |
How do I change the control's border, using your EBN files
StatusBar1->BeginUpdate(); StatusBar1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); StatusBar1->Appearance = Exstatusbarlib_tlb::AppearanceEnum(0x1000000); StatusBar1->VisualAppearance->Add(4,TVariant("c:\\exontrol\\images\\border.ebn")); StatusBar1->VisualAppearance->Add(5,TVariant("CP:4 1 1 -1 -1")); StatusBar1->BackColorPanels = 0x5000000; StatusBar1->Format = L"1,2,3,4,(5/6/7/8)"; StatusBar1->Debug = true; StatusBar1->EndUpdate(); |
2 |
How do I remove the control's border
|
1 |
How can I change the control's font
StatusBar1->BeginUpdate(); StatusBar1->VisualAppearance->Add(4,TVariant("c:\\exontrol\\images\\border.ebn")); StatusBar1->VisualAppearance->Add(5,TVariant("CP:4 1 1 -1 -1")); StatusBar1->BackColorPanels = 0x5000000; /* Select the Component\Import Component...\Import a Type Library, to import the following Type Library: OLE Automation TypeLib: stdole2.tlb to define the namespace: Stdole_tlb */ //#include "STDOLE_TLB.h" Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont"); f->Name = L"Verdana"; f->Size = TVariant(long(12)); StatusBar1->Font = (IFontDisp*)(f); StatusBar1->Format = L"\"static text\"[fg=255][a=17],11,22,(33/44)"; StatusBar1->EndUpdate(); |